/**
 * ...
 * @author Krzysztof Rozalski
 */

package hapi.facebook;

import php.Lib;
import php.NativeArray;

class FacebookSession {
	
	var data:Hash<Dynamic>;
	public var userId(getUserId, null):String;
	
	public function new(sessionData:NativeArray) {
		data = Lib.hashOfAssociativeArray(sessionData);
	}
	
	function getUserId():String {
		return data.get("uid");
	}
}